import { request } from '@/service/request';

/** 获取容器出入库管理列表 */
export function fetchGetOperatorLogList (params?: Api.System.OperatorLogSearchParams) {
    return request<Api.System.OperatorLogList>({
        url: '/system/operatorLog/list',
        method: 'get',
        params
    });
}

/** 新增容器出入库管理 */
export function fetchCreateOperatorLog (data: Api.System.OperatorLogOperateParams) {
    return request<boolean>({
        url: '/system/operatorLog',
        method: 'post',
        data
    });
}

/** 修改容器出入库管理 */
export function fetchUpdateOperatorLog (data: Api.System.OperatorLogOperateParams) {
    return request<boolean>({
        url: '/system/operatorLog',
        method: 'put',
        data
    });
}

/** 批量删除容器出入库管理 */
export function fetchBatchDeleteOperatorLog (ids: CommonType.IdType[]) {
    return request<boolean>({
        url: `/system/operatorLog/${ids.join(',')}`,
        method: 'delete'
    });
}
